<template>
  <div class="wrapper">
    <div class="show-box">
      <img :src="data.img" alt="" />
      <div class="content-box">
        <div class="title">{{ data.title }}</div>
        <div class="content">{{ data.content }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ShowStep",
  props: {
    data: {
      type: Object,
      default() {
        return {};
      },
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.wrapper {
  width: 100vw;
  height: 70vh;
  position: relative;
  .show-box {
    width: 100%;
    height: 70vh;
    margin: 0 auto;
    .stepName {
      width: 100%;
      height: 60px;
      line-height: 60px;
      text-align: center;
      background: #3dc1d3;
      color: cornsilk;
    }
    img {
      width: 100%;
      height: 100%;
    }
    .content-box {
      position: absolute;
      top: 320px;
      width: 100%;
      .title {
        font-size: 20px;
        font-weight: 700;
        padding: 20px;
      }
      .content {
        font-size: 15px;
        padding: 0 20px;
      }
    }
  }
}
</style>